<?php
/**
 * 价格趋势API控制器
 * @author 王勇程 <laughskydragon@qq.com>
 */

namespace app\api\controller;

use app\api\controller\ApiBase;

class Price extends ApiBase
{
    /**
     * 获取价格趋势
     */
    public function getPriceTrend()
    {
        $data = $this->request->param();
        $result = $this->logicPrice->getPriceTrend($data);
        return $this->apiReturn($result);
    }
    
    /**
     * 获取价格历史
     */
    public function getPriceHistory()
    {
        $data = $this->request->param();
        $result = $this->logicPrice->getPriceHistory($data);
        return $this->apiReturn($result);
    }
    
    /**
     * 获取市场统计
     */
    public function getMarketStats()
    {
        $data = $this->request->param();
        $result = $this->logicPrice->getMarketStats($data);
        return $this->apiReturn($result);
    }
    

}